package com.sy.mall.member;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * 远程调用其他服务
 * （1）引入open-feign
 * （2）编写一个接口，告诉SpringCloud这个接口要调用远程服务
 *      1、声明接口的方法调用的为哪个服务的哪个请求
 *      2、开启远超调用功能
 *
 *  会员配置
 */

@EnableRedisHttpSession
@EnableFeignClients(basePackages = "com.sy.mall.member.feign")
@EnableDiscoveryClient
@SpringBootApplication
public class MemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(MemberApplication.class, args);
    }

}
